/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package cn.edu.nju.software.AtoB;


/**
 *
 * @author zf
 */
public class ConsumerImp implements ConsumerIntf{


  private String address = null;
  private String deliverMethod = null;

    public String getAddress() {
       return address;
    }

    public String getDeliverMethod() {
       return deliverMethod;
    }


    public boolean setConsumer(String address,String deliverMethod) {
        try{
           this.address =address;
           this.deliverMethod =deliverMethod;
           return true;
           }
        catch(Exception e){
            e.printStackTrace();
	     return false;
        }

    }



}
